import { app } from 'electron';
import { frontInit, appReadyInit } from './internal';

function bootstrap() {
  const gotTheLock = app.requestSingleInstanceLock();
  if (!gotTheLock) {
    app.quit();
    return;
  }
  frontInit();
  app.whenReady().then(() => appReadyInit());
}

bootstrap();
